﻿using Lamex.Base;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Lamex.mIE.Common
{
    public class GetDWG_List
    {
        /// <summary>
        /// 清单列表
        /// </summary>
        /// <param name="TableName">表名</param>
        /// <param name="colums">显示字段</param>
        /// <param name="condition">查询条件-前面加上and</param>
        public static DataTable Dwg_List(string TableName, string colums, string condition)
        {
            string sql = "select " + colums + " from " + TableName;
            sql = sql + " where 1=1" + condition;
            DataTable dt = new DataTable();
            dt = BaseBuildSql.GetDataTableBySql(sql);
            return dt;
        }
        
    }
}
